<template>
  <div class="homecontainer _homecontainer" :style="' background-color:'+String(backgoundcolor)">
      <GoodTitle :goodname="goodname" :goodinfo="goodinfo" :fontcolor="fontcolor"/>
      <img :src="imgsrc" alt="iphonese">
  </div>
</template>

<script>
import GoodTitle from '../../comcomponents/GoodTitle.vue'
export default {
  components: { GoodTitle },
  props:['goodname','goodinfo','fontcolor','imgsrc','backgoundcolor']
}
</script>

<style lang="less" scoped>
@media only screen and (min-width: 800px) {
    .homecontainer{
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgb(245, 245, 247);
        min-width: 500px;
        font-size: 1.133vw;
        margin-bottom: 20px;
        img{
            width: 100%;
            height: auto;
        }
    }
}
@media only screen and (max-width: 800px) {
    .homecontainer{
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        min-height: 500px;
        font-size: 6px;
        margin-bottom: 20px;
        img{
            width: 100%;
            // 这里设置这个的意义在于，可以随时撑开父元素的高度限制
            height: auto;
        }
    }
}
</style>